/*
 * OKHttpUtils.java
 * business
 *
 * Created by ChenTao on 2017/3/7.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.utils;

import android.app.Application;

import com.lzy.okgo.OkGo;
import com.yidiandao.business.BuildConfig;

import java.util.logging.Level;

/**
 * OKHttpUtils
 *
 * <p>Created by ChenTao(chentao7v@gmail.com) on 2017/3/7 16:18
 */
public class OKHttpUtils {

    public static void init(Application application) {
        OkGo.init(application);
    }

    public static void setup() {
        if (BuildConfig.DEBUG) {
            OkGo.getInstance().debug("OkGo", Level.INFO, true);
        }
    }

    public static void cancelRequest(String tag) {
        OkGo.getInstance().cancelTag(tag);
    }
}
